﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XXX.Models.WDFT
{
   /// <summary>
   /// 科兴，销售订单导入用
   /// </summary>
    public class API_SaleOrder
    {
        public string cId { get; set; }
        public string cSoCode { get; set; }
        public string dDate { get; set; }
        public string cCusCode { get; set; }
        //销售类型：01 自营出口；02 自营生产；03 外贸出口；04 代理出口；05 贸易销售；06 废料销售；07 样品销售；
        public string cSTCode { get; set; }
        //是否备用合同，表头自定义项8，是或者否
        
        //发货地址
        public string cCusOAddress { get; set; }
        /// <summary>
        /// 税号
        /// </summary>
        public string cCusRegCode { get; set; }
        public string cDepCode { get; set; }

        //收付款协议
        public string cGatheringPlan { get; set; }
        public string cPersonCode { get; set; }
        public string cExchName { get; set; }
        public string iExchrate { get; set; }
        public string cMaker { get; set; }
        public string dVerifyDate { get; set; }
        public string cVerifier { get; set; }
        public string cMemo { get; set; }
        public string cDefine1 { get; set; }
        public string cDefine2 { get; set; }
        public string cDefine3 { get; set; }
        public string cDefine4 { get; set; }
        public string cDefine5 { get; set; }
        public string cDefine6 { get; set; }
        public string cDefine7 { get; set; }
        public string cDefine8 { get; set; }
        public string cDefine9 { get; set; }
        public string cDefine10 { get; set; }
        public string cDefine11 { get; set; }
        public string cDefine12 { get; set; }
        public string cDefine13 { get; set; }
        public string cDefine14 { get; set; }
        public string cDefine15 { get; set; }
        public string cDefine16 { get; set; }
        public List<Itemlist> itemList { get; set; }


        public class Itemlist
        {
            //对方传入的行id
            public string cRowId { get; set; }
            public string cInvCode { get; set; }
            public string cFree1 { get; set; }
            public string cFree2 { get; set; }
            public string cFree3 { get; set; }
            public string cFree4 { get; set; }

            public string iRowNo { get; set; }
            public decimal iQuantity { get; set; }

            public decimal iNum { get; set; }
            public decimal iTaxRate { get; set; } 

            public string cItemCode { get; set;}
            public string cItem_Class { get; set; }
            /// <summary>
            /// 报价
            /// </summary>
            //public decimal iquotedprice { get; set; }
            /// <summary>
            /// 原币单价（无税）
            /// </summary>
            public Decimal? iNatUnitPrice { get; set; }
            public Decimal? iNatTaxUnitPrice { get; set; }
            public Decimal? iOriUnitPrice { get; set; }
            public Decimal? iOriTaxUnitPrice { get; set; }
            public Decimal? iNatSum { get; set; }
            public Decimal? iNatMoney { get; set; }
            public Decimal? iNatTax { get; set; }
            public Decimal? iOriSum { get; set; }
            public Decimal? iOriMoney { get; set; }
            public Decimal? iOriTax { get; set; }
            public string idiscount { get; set; }
            public string cbMemo { get; set; }
            public DateTime dPreDate { get; set; }
            
            public string cDefine22 { get; set; }
            public string cDefine23 { get; set; }
            public string cDefine24 { get; set; }
            public string cDefine25 { get; set; }
            public string cDefine26 { get; set; }
            public string cDefine27 { get; set; }
            public string cDefine28 { get; set; }
            public string cDefine29 { get; set; }
            public string cDefine30 { get; set; }
            public string cDefine31 { get; set; }
            public string cDefine32 { get; set; }
            public string cDefine33 { get; set; }
            public string cDefine34 { get; set; }
            public string cDefine35 { get; set; }
            public string cDefine36 { get; set; }
            public string cDefine37 { get; set; }


        }
    }

   
}
